/*
 * @Date: 2022-11-08 13:34:32
 * @LastEditors: sailornpg
 * @LastEditTime: 2022-11-24 10:24:14
 * @FilePath: \vue-admin-ts\src\apis\login\type.ts
 * @Description: 登录相关接口返回类型
 */
export interface ILoginRes {
  token: string;
  id: number;
  name: string;
}
export interface Role {
  id: number;
  name: string;
  intro: string;
  createAt?: Date;
  updateAt?: Date;
}

export interface Department {
  id: number;
  name: string;
  parentId?: any;
  createAt?: Date;
  updateAt?: Date;
  leader: string;
}

export interface IUserInfoData {
  id: number;
  name: string;
  realname: string;
  cellphone: number;
  enable: number;
  createAt?: Date;
  updateAt?: Date;
  role: Role;
  department: Department;
}
